﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Configuration;
using Nano.Core;
using Nano.Core.Config;

namespace Nano.App_Config
{
    public partial class GeneralSettings : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            ConfigEngine.Instance.WebSiteTitle = HttpUtility.HtmlEncode(txtWebSiteTitle.Text.Trim());
            ConfigEngine.Instance.WebSiteDescription = HttpUtility.HtmlEncode(txtWebSiteDescription.Text.Trim());

            Response.Redirect("~/App_Config/default.aspx");
        }
    }
}